<?php	
    class JsonMiddleware extends \Slim\Middleware
    {
        function call()
        {
            $app = $this->app;

            $this->next->call();

            $app->response()->header("Content-Type", "application/json; charset: utf-8;");
        }
    }
?>